package com.jww.cloud.service.user.client;

import com.jww.base.am.model.dos.SysUserDO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

@FeignClient(name = "jww-cloud-service-user")
public interface UserProviderClient {

    @GetMapping("/users/{userId}")
    SysUserDO query(Long userId);

    @GetMapping("/users/username/{username}")
    SysUserDO queryByUsername(String username);
}
